# -*- coding: utf-8 -*-
"""
Created on Mon Sep 13 09:04:17 2021

@author: SIO2
"""

import random
def Mystere():
     
 #Debut 
    P=10
    T=[0,0,0,0,0,0,0,0,0,0]
    for K in(0,9):
         T[K]=(random.randint(0,9))
         if T[K]%2==0:
             P=P+1
         else:
             P=P-2
    return T,P
  #Fin fonction

def Tableau(T):
    #Debut
    L=0
    for K in (0,9):
     L=L+T[K]
    return L
    #Fin fonction

def Resultat(L):
    #Debut
    if L%2==0:
        print("Gagné !")
    else:
        print("Perdu !!")
    #Fin fonction

#Algorithme Principal 
P=0
while P>0:
    T=Mystere()
    L=Tableau(T)
    Resultat(L)

           